<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<input type="text">
		<script v-model="op">
			<option>+</option>
			<option>-</option>
			<option>*</option>
			<option>/</option>	
		</script>
		<button>+</button>
		<input type="text"  />
		<button>=</button>
		<input type="text"  />
		
		<script>
		var op = Vue.createApp({
						data() {
							return {
								num1:'',
								num2:'',
								result:''
							}
						},
						methods:{
							op:function()
							{
								console.log("执行加法")
								var x = parseInt(this.num1)
								var y = parseInt(this.num2)
								var z = x+y;
								this.result = z;
							}
						}
					});

					var vm = app.mount("#app")
		</script>
	</body>
</html>
